import "./index.scss";
import React, { useState, useEffect } from "react";
import { View, Text } from "@tarojs/components";
import Header from "../components/DetailHeader";
import Item from "../components/DetailItem";
import { getStorageSync } from "@tarojs/taro";

async function Tool() {
  let data = await getStorageSync('outCome')
console.log(data,'ccc')
  return (
    <View className="tool">
      <Header></Header>
      <View className="is-today">
        <View className="today-title">今天</View>
        <View className="today-info">
          <View className="today-content">支</View>
          <View className="today-price">25.00</View>
        </View>
      </View>
      <View className="is-today">
        {data.map(item => {
          console.log(item,'lll')
          return <><View className="today-title">
            <View className="day">06日</View>
            <View style={{ marginRight: 12 }}>08.2024</View>
            <View>周二</View>
          </View>
            <View className="today-info">
              <View className="today-content">支</View>
              <View className="today-price">25.00</View>
            </View> </>
        }
        )}

      </View>
      <Item></Item>
    </View>
  );
}
export default Tool;
